﻿using CinemaMaestro.WindowsApplication.Actor;
using CinemaMaestro.WindowsApplication.Category;
using CinemaMaestro.WindowsApplication.Cinema;
using CinemaMaestro.WindowsApplication.Director;
using CinemaMaestro.WindowsApplication.Language;
using CinemaMaestro.WindowsApplication.Movie;
using CinemaMaestro.WindowsApplication.Sale;
using CinemaMaestro.WindowsApplication.Screening;
using MetroFramework.Forms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CinemaMaestro.WindowsApplication
{
    public partial class MainForm : MetroForm
    {
        private HttpClient client;

        public MainForm(HttpClient client)
        {
            this.client = client;
            InitializeComponent();
        }

        private void LanguagesTile_Click(object sender, EventArgs e)
        {
            LanguagesForm form = new LanguagesForm(client);
            form.ShowDialog();
        }

        private void CategoriesTile_Click(object sender, EventArgs e)
        {
            CategoriesForm form = new CategoriesForm(client);
            form.ShowDialog();
        }

        private void directorsTile_Click(object sender, EventArgs e)
        {
            DirectorsForm form = new DirectorsForm(client);
            form.ShowDialog();
        }

        private void actorsTile_Click(object sender, EventArgs e)
        {
            ActorsForm form = new ActorsForm(client);
            form.ShowDialog();
        }

        private void cinemasTile_Click(object sender, EventArgs e)
        {
            CinemasForm form = new CinemasForm(client);
            form.ShowDialog();
        }

        private void moviesTile_Click(object sender, EventArgs e)
        {
            MoviesForm form = new MoviesForm(client);
            form.ShowDialog();
        }

        private void screeningsTile_Click(object sender, EventArgs e)
        {
            ScreeningsForm form = new ScreeningsForm(client);
            form.ShowDialog();
        }

        private void sellTile_Click(object sender, EventArgs e)
        {
            SalesForm form = new SalesForm(client);
            form.ShowDialog();
        }

    }
}
